package edu.mit.media.fv.events
{
	import flash.events.Event;
	
	public class UpdateEvent extends Event
	{
		/**
		 * Events that indicate when incoming message comes in
		 * 
		 */
		public static var NAN:int = -728374;
		
		public static var ADD_POLL:String = "addPoll";
		public static var ADD_PIX:String = "addPix";
		public static var ADD_TEXT:String = "addText";
		public static var ADD_VOICE:String = "addVoice";
		public static var ADD_TIVO:String = "addTivo";
		public static var ADD_POLL_RESULT:String = "addPollResult";
		public static var ADD_SHOPPING:String = "addShopping";
		
		public static var ADD_USER:String = "addUser";
		public static var ADD_SERVICE:String = "addService";
		public static var ADD_GROUP:String = "addGroup";
		
		public static var UPDATE:String = "updateFVMesage";
		public static var DELETE:String = "deleteFVMessage";
		public static var ACK_CREATE:String = "ackCreateMessage";
		
		public var id:int;
		public var label:String = "";
		public var status:int = -27387;
		public var time:Number = 0;
		public var authorID:int
		
		public function UpdateEvent(type:String, id:int)
		{
			super(type);
			this.id = id;
		}
	}
}